<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateDefMainGamePlatsTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('def_main_game_plats', function(Blueprint $table)
		{
			$table->integer('id', true);
			$table->string('main_game_plat_name', 11)->comment('主平台名称');
			$table->string('main_game_plat_code', 11)->nullable()->comment('主平台代码');
			$table->decimal('rate', 5, 4)->default(0.0000)->comment('比率');
			$table->boolean('status')->nullable()->default(1)->comment('1=正常，2=关闭');
			$table->timestamps();
		});
	}


	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('def_main_game_plats');
	}

}
